import axios from './../api/interface-package'
import interfacePath from './../api/interface-path'

class Home {
  login(userName, passWord) {
    return axios(`${interfacePath.user.login}`, { userName, passWord }, 'POST')
  }

  register(config) {
    return axios(`${interfacePath.login}/webapi/HrPersonal/add`, config)
  }
}

export default new Home()
